package org.jeecg.modules.message.mapper;

import java.util.List;

import com.baomidou.mybatisplus.annotation.SqlParser;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Param;
import org.jeecg.entity.meter.Meter;
import org.jeecg.modules.message.entity.SysMessage;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.jeecg.vo.meter.MeterSwitchRespVo;

/**
 * @Description: 消息
 * @Author: jeecg-boot
 * @Date:  2019-04-09
 * @Version: V1.0
 */
public interface SysMessageMapper extends BaseMapper<SysMessage> {

    List<SysMessage> selectPage(IPage<SysMessage> page, @Param("sysMessage") SysMessage sysMessage);

    @SqlParser(filter = true)
    void saveForTenant(SysMessage sysMessage);

    void updateSmsLevel(@Param("switchRespVoList") List<MeterSwitchRespVo> switchRespVoList);

    List<SysMessage> queryExistMessage(@Param("meterList")List<Meter> meterList);
}
